// 所有的api接口统一管理
import requests from "./request";

export const reqList = () => requests.get("/sys/lottery/getCommodity");

export const reqIndex = () => requests.post("/sys/lottery/lottery");

export const reqGetPeople = () => requests.get("/sys/lottery/getLotteryPerson");

export const reqGetPeople2 = (params) => {
    return requests({
        method: "get",
        url: `/sys/lottery/StartLottery?count=${params}`,
    })
};

export const reqGet = (name) => {
    return requests({
        url:`/sys/lottery/participation?name=${name}`,
        method:"get"
    })
}


